Latest Questions

Jest test passes but .. has console message You are trying to access a property or method of the Jest environment after it has been torn down

My test passes but has a console refrenceError: You are trying to access a property or method of the Jest environment after it has been torn down. Test: import

Split a text using different delimiters

long time no coding in c and i'm a bit in trouble. I get tex from a file formatted like that: # 3 10 P1 16 3 P2 8 1 P3 10 2 from the second line every line re

flutter TextField with auto textDirection

I want to use TextField in the Flutter to enter two languages (one of them is RTL and the other is LTR) so that one language is entered in each line. How can th

C++, initialize a 2d array. error:subscript requires array or pointer

New to C++. Here is my code: #include <string> #include <cstdlib> #include <time.h> using namespace std; const int Gardensize = 20;//Garden

Seek method for javafx MediaPlayer does not seek correctly for 1.5 hr+ long audio files

I recently fixed a bug where the javafx MediaPlayer would break whenever I disconnected my bluetooth headphones. I fixed that by doing this. mediaPlayer.set

UnpicklingError on data received from socket

Context: I have a system with a server.py file and a live_client.py. Server is constantly updating an object. The system works correctly if I send the attribute

Issue with Google cloud sdk setup

I am facing issue when trying to setup Google cloud SDK. the Error is in

Java gateway process exited before sending its port number

I am trying to install PySpark on my Windows 10 to be used on Jupyter Lab. I have already installed Java and running Python 3.7.3: openjdk version "1.8.0_242" O

Is the description of the "Contiguity within looping patterns " in the document correct?

as the description in flink CEP document: Strict Contiguity: Expects all matching events to appear strictly one after the other, without any non-matching events

Django use urls with same ending

I ahve a django project with the application web-api and the following url configuration: main project urls.py urlpatterns = [ path('admin/', admin.site.url

KeyError while reading a CSV file in Python

I am trying to plot the fall of an object (an optical fork to be precise) as a function of time in order to verify that the law of gravity is indeed 9.81. The d

Can you listen for SpringCamelContext status?

Using EventNotifierSupport, I can listen for CamelContextStartedEvent. However, I need to add one more root to the context, after all the other routes have alre

Can lambda be used instead of void operator?

I'm wondering about this c++11 example and using operator for algorithm functions (for_each, remove_if etc.). For example, I have 2 blocks: struct UpdateFunc {

WorkManager: java.lang.VerifyError: Verifier rejected class androidx.work.impl.OperationImpl

I'm trying to resuscitate an old codebase. In one of the activities, the enqueue() call represented in the code snippet below keeps crashing the app: WorkManage

Python: Reading a Windows generated csv with carriage return in column

I'm working on a Python program that needs to read csv files that are produced on a Windows 2012 server machine. The aim of the Python code is to give a min/max

Do I need this many blocks in my launch.json file?

I have had this launch.json file look this way for most of the time I have had my project. I am not entirely sure what the file's purpose is or what the specifi

Solidity storing timestamp/value data thats easily accessible

I have an interesting use case that I can't seem to solve. Problem: Tokens get X points per day. I want to freeze ERC721 tokens (they have IDs) for a certain pe

Mock grpc service in unit testing nestjs

I want write an unit test for my getAllGroups() method in mail.service.ts: public async getAllGroup(): Promise<{ id: number, name: string }[]> { try {

How to implement DocuSign for a marketplace app?

We are building a marketplace app similar to the Uber model. In this the service provider and end customers both register with the platform. Once they negotiate

ReactJS ARIA (Accessible Rich Internet Applications ) Integration

I am learning ReactJS and I want to implement ARIA elements so that website is accessible through Screen Reader. Are there any packages present to achieve this?

how to get image node offset from a FIT file (or .itb) file?

FIT (flattend image tree) is a kind of dtb (device tree blob) file containing some images node under /. It is used in u-boot program. For example, a dts (device

6- Write this client method using only the push(), top(), pop(), and isEmpty()

6- Write this client method using only the push(), top(), pop(), and isEmpty() methods: public static void reverse(ArrayStack stack) // reverses the contents

AWS DMS Error - Unable to use plugins to establish logical replication on source PostgreSQL instance

I'm getting this error trying to replicate a postgre database (not RDS) to another postgre database (also not RDS). I get this connection error but the endpoint

XmlMapper: read XML values without assigning a class for the created objects

I am trying to implement a multi language interface for my project and for this I want to load the data for the 3 languages from XML file. The problem is that w

Rspec test fails while rendering

For my user controller, while running the test cases I am facing render issue. It is redirecting to http://test.host/sign_in instead of rendering new. Controlle

Optimization: Attempting to declare variables in matrix format and exporting in excel format

I have price, cost, demand in different sheets of an excel workbook. Each of these have two dimensions such as Product and Location. Total number of columns(tim

Avalonia style selector doen't works on derived classes

I'm having an issue to style my custom control derived from button. I inherited the Button class to add a DependencyProperty to it: public class IconButton : Bu

Mocking a function in jest which returns Promise<string[] | never>

I'm using React+JEST to test an existing component. It has a function filterDeliveries like so : const filterEmptyDeliveries = (arr): Promise<string[] | neve

DDD Event storming alone

I'm trying to start my first DDD project but I have difficulty with choosing what should be aggregate and what bounded context. What is the way to define those.

Android Koin injected viewmodel with multiple same class parameters fails

I'm following the docs as stated her https://insert-koin.io/docs/reference/koin-android/viewmodel/#viewmodel-and-injection-parameters The only difference is my